import java.util.Scanner;

public class Access {
    public static void main(String[] args) {
        //华为手机
        double huaweiprice = 3688.88;//单价
        int huaweikucun = 0;//手机库存
        double huaweizongjia = 0;// 华为手机总价
        System.out.println("品牌型号 ：华为");
        double chicun =5.5;
        System.out.println("尺寸："+chicun);
        System.out.println("价格:"+huaweiprice);
        String peizhi ="8+128";
        System.out.println("配置："+peizhi+'g'+"全面刘海屏");
        System.out.println("请输入华为手机的库存");
        /**Scanner 类用来获取用户输入信息
        *定义一个Scanner类型的变量scl
        *使用new实例化Scanner类（向计算机要内存空间运行Scanner）
        *System.in获取用户输入信息  交由Scanner处理
        */
        Scanner scl = new Scanner(System.in);
        huaweikucun = scl.nextInt();
        huaweizongjia = huaweikucun * huaweiprice;
        System.out.println("库存华为手机的总金额："+huaweizongjia);
        double xiaomiprice = 2988.88;//单价
        int   xiaomikucun  = 0;//手机库存
        double xiaomizongjia = 0;// 小米手机总价
        System.out.println("品牌型号：小米");
        double chicun1 = 5.0;
        System.out.println("尺寸：" + chicun1);
        System.out.println("价格"+xiaomiprice);
        String peizhi1 ="4+64";
        System.out.println("配置："+"g" + "全面屏");
        System.out.println("请输入小米手机的库存");
        xiaomikucun =  scl.nextInt();
        xiaomizongjia = xiaomikucun * xiaomiprice;
        System.out.println("库存小米手机的总价 ："+xiaomizongjia);
        System.out.println("-------库存清单---------");
        System.out.println("品牌型号    尺寸           价格        配置           库存数量             总价");
        System.out.println("华为      "+chicun+"          "+huaweiprice+"    "+peizhi+"               "+huaweikucun+"              "+huaweizongjia );
        System.out.println("小米      "+chicun1+"          "+xiaomiprice+"    "+peizhi1+"               "+xiaomikucun+"              "+xiaomizongjia );
        System.out.println("---------------------");
        System.out.println("商品总库存：" +huaweikucun + xiaomikucun);
        System.out.println("商品总金额:" +huaweizongjia+xiaomizongjia +"￥");
    }
}
